<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登陆页面</title>
    <link rel="stylesheet" href="/stylesheets/login.css">
</head>
<body>
    <div class="login">
        <form action="/users/checkLogin" name="user" method="post">    
        <h2>登陆\注册</h2>
        <div class="login_form">
            <span>账号：</span>
            <input type="text" placeholder="请输入账号" name="usernum">
            <br>
            <span>密码：</span>
            <input type="password" placeholder="请输入密码" name="password">
            <br>
            <%- info%>
        </div>
        <div class="btn">          
            <button class="login_btn">登 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;录</button><br>       
            <button class="login_btn" onclick="{location.href='register.html'}">注 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;册</button>   
        </div>
        </form>
    </div>
</body>
<script>
  window.onunload=function(){
        alert("1111")
        sessionStorage.clear()
    }
</script>
</html>